import React from 'react';
import { sn_name, PanelTitle, Title, Ret } from 'sui';
import { PropField } from './pview';

const ParaView = ({ hreturn, subtitle, cur, mod }) => {
    const Left = () => {
        return <Title mod={sn_name(cur)} sub={subtitle} className="mr-32"/>;
    }

    return (
        <div className="flex flex-col">
            <PanelTitle cl="gray" left={<Left/>} right={<Ret hcmd={hreturn}/>}/>
            <PropField mod={mod} title={sn_name(cur)} cur={cur}/>
        </div>
    );
};

export {ParaView};
